package third.lib.utils;

import java.math.BigDecimal;
import java.text.DecimalFormat;

public class NumberUtils {
    public static String BigDecimalToStr(BigDecimal val, String format){
        DecimalFormat df2 = new DecimalFormat(format);
        return df2.format(val);
    }

    public static int FToIfloor(float f){
        return (int)Math.floor(f);
    }
}
